package com.ztstkj.lzscale.adpters

import com.blankj.utilcode.util.GsonUtils
import java.math.BigDecimal

class CartItem(){
    var settlement: Int=0
    var productId:Int=0              //可回收物id
    var productName: String=""       //可回收物名
    var productImage: String=""      //可回收物图片
    var productWeight: Int=0         //可回收物重量
    var productPrice: BigDecimal=BigDecimal(0)
    var productPoint:Int=0           //可回收物积分单价
    var prodcutPriceAmount: BigDecimal=BigDecimal(0)
    var productPointAmount: Int=0
    var photo:String=""
    fun deepCopy(): CartItem {
        return GsonUtils.fromJson(GsonUtils.toJson(this),CartItem::class.java)
    }

}